package com.nan.common.menu;

import java.util.ArrayList;
import java.util.List;

public class MenuList {
	public String text;
	public List<MenuLink> list;
	public String icon;
	public boolean active;
	
	public MenuList(String list_text, List<MenuLink> list_list, String list_icon)
	{
		text = list_text;
		list = list_list;
		icon = list_icon;
	}
	
	public MenuList(String list_text, List<MenuLink> list_list)
	{
		text = list_text;
		list = list_list;
		icon = "list";
	}
	
	public MenuList(String list_text)
	{
		text = list_text;
		list = new ArrayList<MenuLink>();
		icon = "list";
	}
	
	public void listAdd(MenuLink link)
	{
		list.add(link);
	}
	
	public boolean getActive() {
		return this.active;
	}
	
	public String getText() {
		return this.text;
	}
	
	public String getIcon() {
		return this.icon;
	}
	
	public List<MenuLink> getList() {
		return this.list;
	}
}
